package compile;

/**
 * 局部变量的final
 */
public class FinalDemo {
    static int test1() {
        final int a = 0;
        return a;
    }

    static int test2() {
        int a = 0;
        return a;
    }

    public static void main(String[] args) {
        System.out.println(test1());
        System.out.println(test2());
    }
}
